package top.oylan.manager.service;

import top.oylan.manager.entity.Action;
import top.oylan.manager.entity.Comment;
import top.oylan.manager.entity.Liked;
import top.oylan.manager.entity.User;
import top.oylan.manager.tools.Pager;

import java.util.List;

/**
 * Created by A on 2019/2/11.
 */
public interface UserService {

    User selectUserById(Integer id);

    User selectUserByAccount(String account);

    List<User> selectManagerByPager(Pager<User> pager);

    List<Action> findActionsByUserId(Integer id);

    void add(User user);

    void addManger(User user, List<Integer> idsList);

    void updateManger(User user, List<Integer> idsList);

    User findUserByPhone(String phone);

    int updateUser(User user);

    int addUser(User user);

    int comment(Comment comment);

    int saveLiked(Liked liked);

    int cancelLike(Liked liked);
}
